Skip to content

feat(search): support individual history deletion and suggestion fill - #8

Merged
NihilDigit merged 1 commit into
NihilDigit:mainfrom
The-R0:pr-search-history-and-suggestions
Nov 12, 2026
Merged

NihilDigit merged 1 commit into
NihilDigit:mainfrom
The-R0:pr-search-history-and-suggestions

Conversation

@The-R0

@The-R0 The-R0 commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

变化

  • 搜索历史支持逐条点选删除(SearchChatScreen.kt):
    • 点击「最近搜索」右侧的删除图标或长按任意历史词进入编辑态:每个历史 chip 尾部露出 ×,点按即可逐条删除,顶部同时提供「清空」(含二次确认)与「完成」按钮,避免只能一次性清空全部记录。
  • 搜索联想词支持一键填入与清空自动聚焦(SearchChatScreen.kt、SearchField.kt):
    • 联想词列表每行右侧新增 ↖(NorthWest)填入按钮,点击可将联想词填入搜索框继续编辑而不直接发起搜索;
    • 点击搜索框右侧 × 清空按钮时自动聚焦并唤起输入法。

截图

搜索历史编辑态(逐条删除 / 清空 / 完成) 搜索联想词行尾填入按钮(↖)
搜索历史编辑态 搜索联想词填入

Add an edit mode to SearchHistoryPanel so users can delete individual history chips with a single tap (entered via the header delete button or long-pressing a chip), add a trailing fill button on each search suggestion row, and auto-focus the search field when clearing input.
@NihilDigit
NihilDigit force-pushed the pr-search-history-and-suggestions branch from b95dd27 to ed574a9 Compare November 12, 2026 19:34
@NihilDigit
NihilDigit merged commit 977f2f8 into NihilDigit:main Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants